#ifndef SESSION_H
#define SESSION_H

#include <string>
#include <rpc/rpc_msg.h>

class session
{
private:
	std::string m_env;
	std::string m_value;
	int m_status;
	
	//struct sockaddr_in m_client_id;
	in_port_t m_client_port;
	uint32_t m_client_addr;

public:
	static const int NEW_SESSION = 0;
	static const int OLD_SESSION = 1;
	static const int DISABLED_SESSION = 2;
	
public:
	session(in_port_t client_port, uint32_t client_addr);
	std::string& env();
	std::string& value();
	int& status();
	
	in_port_t client_port();
	uint32_t client_addr();
};

#endif // SESSION_H
